﻿using System;
using System.Linq;
using System.Collections.Generic;

using MiniSched.Orm.Enumerations;

namespace MiniSched.Orm.Initialization {

    public class MiniSchedSeeder<TContext> where TContext : MiniSchedContext {

        public virtual void Seed(TContext context) {
            if (null == context) throw new ArgumentNullException("context");

            context.Roles.SeedOptions(RoleOption.Values);
            context.RecurrenceTypes.SeedOptions(RecurrenceTypeOption.Values);

            context.SaveChanges();
        }
    }
}
